package com.yuexin.project.store.stock.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yuexin.framework.aspectj.lang.annotation.Excel;
import com.yuexin.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 物品管理表 store_goods_list
 * 
 * @author yuexin
 * @date 2018-11-30
 */
public class Stock extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 物品ID */
	private Integer goodsId;
	/** 物品排序 */
	private Integer goodsSort;
	/** 物品编号 */
	@Excel(name = "物品编号")
	private String goodsNumber;
	/** 物品名称 */
	@Excel(name = "物品名称")
	private String goodsName;
	/** 所属类别 */
	private Integer sortId;
	/** 物品单位 */
	private String goodsUnit;
	@Excel(name = "物品单位")
	private String goodsUnitName;
	/** 备注 */
	@Excel(name = "备注")
	private String remark;
	/** 库存数量 */
	@Excel(name = "库存数量")
	private Integer stockAmount;
	/** 最后异动日 */
	@JsonFormat(pattern="yyyy-MM-dd")
	private Date updateTime;
	@Excel(name = "最后异动日")
	private String updateTimeExcel;

	public String getGoodsUnitName() {
		return goodsUnitName;
	}

	public void setGoodsUnitName(String goodsUnitName) {
		this.goodsUnitName = goodsUnitName;
	}

	public String getUpdateTimeExcel() {
		return updateTimeExcel;
	}

	public void setUpdateTimeExcel(String updateTimeExcel) {
		this.updateTimeExcel = updateTimeExcel;
	}

	public void setGoodsId(Integer goodsId) 
	{
		this.goodsId = goodsId;
	}

	public Integer getGoodsId() 
	{
		return goodsId;
	}
	public void setGoodsSort(Integer goodsSort) 
	{
		this.goodsSort = goodsSort;
	}

	public Integer getGoodsSort() 
	{
		return goodsSort;
	}
	public void setGoodsNumber(String goodsNumber) 
	{
		this.goodsNumber = goodsNumber;
	}

	public String getGoodsNumber() 
	{
		return goodsNumber;
	}
	public void setGoodsName(String goodsName) 
	{
		this.goodsName = goodsName;
	}

	public String getGoodsName() 
	{
		return goodsName;
	}
	public void setSortId(Integer sortId) 
	{
		this.sortId = sortId;
	}

	public Integer getSortId() 
	{
		return sortId;
	}
	public void setGoodsUnit(String goodsUnit) 
	{
		this.goodsUnit = goodsUnit;
	}

	public String getGoodsUnit() 
	{
		return goodsUnit;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}
	public void setStockAmount(Integer stockAmount) 
	{
		this.stockAmount = stockAmount;
	}

	public Integer getStockAmount() 
	{
		return stockAmount;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsId", getGoodsId())
            .append("goodsSort", getGoodsSort())
            .append("goodsNumber", getGoodsNumber())
            .append("goodsName", getGoodsName())
            .append("sortId", getSortId())
            .append("goodsUnit", getGoodsUnit())
            .append("remark", getRemark())
            .append("stockAmount", getStockAmount())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
